package com.wjc.lib

/**
 * ClassName: com.wjc.lib
 * Description:
 * JcChen on 2021.04.14.10:43
 */
object StandFun {
    @JvmStatic
    fun main(args: Array<String>) {
        runTest()
    }

    private fun runTest() {
        val list = listOf("Apple", "Banana", "Orange", "Pear", "Grape")
        val result = StringBuilder().run {
            append("Start eating fruits.\n")
//            for (fruit in list) {
//                append(fruit).append("\n")
//            }
            append("Ate all fruits.\n")

        }
        println(result)

        val res = run {
            "ddd"+"dd"
            333 * 999
        }
    }
}